#!usr/bin/python
# -*- utf-8 -*-
import sys,re
from util import *
print '<html><head><title>...</title><body>'
title = True

#fi = open('/Users/mac/Desktop/test_input.txt','wb')
for block in blocks(fi):
	block=re.sub(r'\*(.+?)\*', r'<em>\l</em>', block)
	if title:
		print '<h1>'
		print block
		print '</h1>'
		title =False
	else:
		print '<p>'
		print block
		print '</p>'
print '</body></html>'

